<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title></title>
	<script type="text/javascript" src="http://localhost/c45/xiangmu/boke/boke/Static/uploadify/jquery-1.8.2.min.js"></script>
	<script type="text/javascript" src="http://localhost/c45/xiangmu/boke/boke/Static/uploadify/jquery.uploadify.min.js"></script>
	<link href="http://localhost/c45/xiangmu/boke/boke/Static/uploadify/uploadify.css" type="text/css" rel="stylesheet"></link>
	<link type="text/css" rel="stylesheet" href="http://localhost/c45/xiangmu/boke/boke/Static/hdjs/hdjs.css"/>
	<script type="text/javascript" src="http://localhost/c45/xiangmu/boke/boke/Static/hdjs/hdjs.min.js"></script>
</head>
<body>
	<div class="hd-menu-list">
	    <ul>
	        <li class="active"><a href="<?php echo U('Flink/index');?>">友链列表</a></li>
	        <li><a href="<?php echo U('Flink/add');?>">添加友链</a></li>

	    </ul>
	</div>
	<table class="hd-table hd-table-list">
		    <thead>
		    <tr>
		     	<td>排序</td>
		        <td>FID</td>
		        <td>链接名</td>
		        <td>链接地址</td>
		        <td>是否显示</td>
		        <!-- <td>文章静态</td> -->
		        <td>操作</td>
		    </tr>
		    </thead>
		    <tbody>
		    <?php foreach ($flink as $k=>$v){?>
			    <tr>
			    	<td><input type="text" value="<?php echo $v['sort'];?>" name="sort[]" class="hd-w30"><input type="hidden" name="fid[]" value="<?php echo $v['fid'];?>"></td>
			        <td><?php echo $v['fid'];?></td>
			        <td>
			           	<?php echo $v['fname'];?>
			        </td>
			        <!-- <input type="submit" value="<?php echo $v['cname'];?>"> -->
			        <td><?php echo $v['url'];?></td>
			        <td><?php echo $v['is_show'];?></td>
			        <!-- <td><?php echo $v['is_archtml'];?></td> -->
			        <td class="hd-w100">
			            <a href="<?php echo U('flink/edit',array('fid'=>$v['fid']));?>">修改</a> |
			            <a href="<?php echo U('flink/del',array('fid'=>$v['fid']));?>">删除</a>
			        </td>
			    </tr>
			<?php }?>
		    </tbody>
		</table>
</body>
</html>